home *** CD-ROM | disk | FTP | other *** search
- function GandyHit()
- {
- _root.gandy._x = _root.gandyxstart;
- _root.gandy._y = _root.gandyystart;
- _root.gandy.leftspeed = 0;
- _root.gandy.rightspeed = 0;
- _root.gandy.upspeed = 0;
- _root.score -= 25;
- _root.lives--;
- s = new Sound();
- s.attachSound("ouchsound");
- s.setVolume(100);
- s.start();
- if(_root.lives < 1)
- {
- _root.level = 16;
- _root.platforms.gotoAndStop(16);
- _root.obstacles.gotoAndStop(16);
- _root.background.gotoAndStop(16);
- _root.foreground.gotoAndStop(16);
- _root.gandy.leftspeed = 0;
- _root.gandy.rightspeed = 0;
- _root.gandy.upspeed = 0;
- _root.steam._x = -200;
- _root.ospikes._x = -100;
- _root.spikes._x = -100;
- _root.moriaspikes._x = -100;
- _root.ospikes2.removeMovieClip();
- _root.ospikes3.removeMovieClip();
- _root.moriaspikes2.removeMovieClip();
- _root.spikes2.removeMovieClip();
- _root.spikes3.removeMovieClip();
- _root.spider2.removeMovieClip();
- _root.bigflame._x = -200;
- _root.ickywater._x = -400;
- _root.orc._x = -200;
- _root.orc2._x = -200;
- _root.spider1._x = -200;
- _root.spiderdown1._x = -200;
- _root.troll._x = -200;
- _root.orcarcher._x = -200;
- _root.arrowpath._x = -400;
- _root.saruman._x = -550;
- _root.bliksem._x = -550;
- _root.mypipe._x = -610;
- _root.exitsign._x = -610;
- _root.goldxpos = new Array(-200,-200,-200,-200,-200,-200);
- _root.goldypos = new Array(-200,-200,-200,-200,-200,-200);
- _root.BuildLevel();
- }
- }
- function BuildLevel()
- {
- aa = 0;
- while(aa < 6)
- {
- _root["coin" + aa]._x = goldxpos[aa];
- _root["coin" + aa]._y = goldypos[aa];
- aa++;
- }
- }
- game = "gandy";
- level = 1;
- lives = 20;
- goldxpos = new Array(15,180,230,390,610,520);
- goldypos = new Array(90,90,300,400,30,400);
- aa = 0;
- while(aa < 6)
- {
- _root.coin0.duplicateMovieClip("coin" + aa,aa);
- _root["coin" + aa]._x = goldxpos[aa];
- _root["coin" + aa]._y = goldypos[aa];
- aa++;
- }
- stop();
-